

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:furaha_mkopo/commonTool/fm_color_tool.dart';
import 'package:furaha_mkopo/commonTool/fm_language_tool.dart';

class FMDetailStepWidget extends StatelessWidget {

  String title;

  String? desc;

  FMDetailStepWidget({super.key,required this.title,this.desc});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 80,
      alignment: Alignment.centerLeft,
      decoration: const BoxDecoration(
        image: DecorationImage(
          image: AssetImage("assets/detail/detail_step_bg.png"),
          fit: BoxFit.fill
        )
      ),
      child: Padding(
        padding: const EdgeInsets.only(left: 17),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(
              title,
              style: const TextStyle(
                fontSize:18,
                fontWeight: FontWeight.w700,
                color: Colors.black
              ),
            ),
            const SizedBox(height: 4),
            Text(
              desc ?? FMLanguageTool.getText("Please fill in your information truthfully"),
              style: TextStyle(
                  fontSize:14,
                  fontWeight: FontWeight.w500,
                  color: FMColorTool.color("#614815")
              ),
            ),
          ],
        ),
      ),
    );
  }
}
